import Vue from 'vue'
import Router from 'vue-router'
import  Index from "@/components/Index"
import  Witness from "@/components/witness/witness"

Vue.use(Router)

export default new Router({
  routes: [
    {path: '/', name: 'index', component:Index},
    {path: '*', redirect: '/'},
  //  -------------------------
    {path: '/witness', name: 'witness', component: Witness},
  ]
})
